#include "StdAfx.h"
#include ".\guildserversession.h"
#include ".\PacketHandler.h"

GuildServerSession::GuildServerSession(void)
{
}

GuildServerSession::~GuildServerSession(void)
{
}


VOID GuildServerSession::OnConnect( BOOL bSuccess, DWORD dwSessionIndex )
{
	ServerSession::OnConnect( bSuccess, dwSessionIndex );

	if( bSuccess )
	{
		SUNLOG( eFULL_LOG,  "[GuildServerSession::OnConnect] Connected to Guild Server." );

		ServerSession::SendServerType();
	}
	else
	{
	}
}

VOID GuildServerSession::OnDisconnect()
{
	printf( "Disconnected from Guild Server." );

	ServerSession::OnDisconnect();
}

VOID GuildServerSession::OnRecv( BYTE *pMsg, WORD wSize )
{
	PacketHandler::Instance()->ParsePacket_GZ( this, (MSG_BASE *)pMsg, wSize );
}
